package com.wuge.gulimall.product.feign;

import com.wuge.common.to.es.SkuEsModel;
import com.wuge.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient("gulimall-search")
public interface ElasticSearchFeignService {
    @PostMapping("/sava/productList")
    public R saveSku(@RequestBody List<SkuEsModel> list);
}
